# list
l = list(range(10))
s = l[2:6:2]
print(s)
print(s[:])
l[2:6:3] = [1, 2]
print(l)
l[2:8] = [6, 6, 6]
print(l)

# tuple
l = tuple(range(10))
s = l[2:6:2]
print(f"{s = }, {s[:] = }, {l[::-1] = }")

# str
s = "hello world"
print(f"{s = }, {s[2:8] = }, {s[::-1] = }")
